package cc.vv.baselibrary.api;

public class BaseUrl {
    /**
     * 内外网标识，true为外网；false为内网
     */
    private static final boolean IntranetOrNetwork = true;
    /**
     * http
     */
    private static final String Base_Http = IntranetOrNetwork ? "http://" : "http://";

    /**
     * 公共IP
     */
//    private static final String Base_Ip = IntranetOrNetwork ? "47.105.83.111" : "192.168.10.60";
    private static final String Base_Ip = IntranetOrNetwork ? "113.137.27.18" : "192.168.10.60";
    /**
     * 公共端口号
     */
    private static final String Base_Post = ":" + (IntranetOrNetwork ? "9100" : "9000");
//    private static final String Base_Post = ":" + (IntranetOrNetwork ? "9000" : "9000");

    /**
     * 基础url
     */
    public static String getBaseUrl() {
        return Base_Http + Base_Ip + Base_Post;
    }

    /**
     * 公共端口号
     */
    private static final String Base_H5_IP = IntranetOrNetwork ? "113.137.27.18" : "192.168.10.89";
//    private static final String Base_H5_IP = IntranetOrNetwork ? "47.105.83.111" : "192.168.10.89";


    /**
     * 公共端口号
     */
    private static final String Base_H5_Post = ":" + (IntranetOrNetwork ? "9104" : "9011");
//    private static final String Base_H5_Post = ":" + (IntranetOrNetwork ? "9004" : "9011");
    /**
     * 基础url
     */
    public static String getBaseH5Url() {
        return Base_Http + Base_H5_IP + Base_H5_Post;
    }

    public static String getYanAnUrl() {
        return "http://dja.yadj.gov.cn/pmc";
    }

}
